From 41a7f65ee12166d6e1558fa117b5f8e1e37cb144 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 29 Aug 2010 03:03:28 +0000 Subject: [PATCH] Fix bug introduced in untested r71576. getNamespaces() did not use getCanonicalNamespaces for backwards-compatibility with 1.16wmf4 :-) --- languages/Language.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/languages/Language.php b/languages/Language.php index 71793e20bf..a5b66282dc 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -262,6 +262,8 @@ class Language { } # Sometimes a language will be localised but not actually exist on this wiki. + global $wgCanonicalNamespaceNames; + $validNamespaces = array_keys(MWNamespace::getCanonicalNamespaces()); foreach( $this->namespaceNames as $key => $text ) { if ( !isset( $validNamespaces[$key] ) ) { unset( $this->namespaceNames[$key] ); -- 2.20.1